import request from '@/utils/request'

// 查询出入库--即开票入库明细列表
export function listInventoryBillJoin(query) {
  return request({
    url: '/system/inventoryBillJoin/list',
    method: 'get',
    params: query
  })
}

// 查询出入库--即开票入库明细详细
export function getInventoryBillJoin(id) {
  return request({
    url: '/system/inventoryBillJoin/' + id,
    method: 'get'
  })
}

export function check(ids){
  return request({
    url: '/system/inventoryBillJoin/check',
    method: 'post',
    data: Array.isArray(ids)? ids : [ids]
  })
}

// 新增出入库--即开票入库明细
export function addInventoryBillJoin(data) {
  return request({
    url: '/system/inventoryBillJoin',
    method: 'post',
    data: data
  })
}

// 修改出入库--即开票入库明细
export function updateInventoryBillJoin(data) {
  return request({
    url: '/system/inventoryBillJoin',
    method: 'put',
    data: data
  })
}

// 删除出入库--即开票入库明细
export function delInventoryBillJoin(id) {
  return request({
    url: '/system/inventoryBillJoin/' + id,
    method: 'delete'
  })
}
